package com.foreknow.demo8;

/**
 * 子类负责实现抽象类当中所有的抽象方法
 */
public class PersonSub extends Person implements B,C{
    @Override
    public void eat() {
        System.out.println("eat...");
    }

    @Override
    public void study() {
        System.out.println("study...");
    }

    @Override
    public void sleep() {
        System.out.println("sleep...");
    }

    @Override
    public void game() {
        System.out.println("game...");
    }

    @Override
    public void method3() {

    }

    @Override
    public void method4() {

    }

    public static void main(String[] args) {
        PersonSub p= new PersonSub();
        p.eat();
        p.game();
        p.sleep();
        p.study();
        p.method3();
        p.method4();

    }
}
